
import axios from '../utils/http'

export const getGoodsList = (data) => {
    return axios.get('/goods/list', { params: data })
}





export const uploadGoodsImg = (data) => {
    return axios.post('/goods/goods_img_upload',data)
}
export const addGoods = (data) => {
    return axios.post('/goods/add', data)
}
export const updateGoods = (data) => {
    return axios.post('/goods/edit', data)
}
export const getGoodsClassify = (data) => {
    return axios.get('/goods/catelist', { params: data })
}
export const editgoodsclassify = (data) => {
    return axios.post('/goods/editcate', data)
}
export const upload = (data) => {
    return axios.post('/goods/editcate', data)
}
export const delgoods = (id) => {
    return axios.get('/goods/del', { params: id })
}
export const addgoodsclassify = (data) => {
    return axios.post('/goods/addcate', data)
}

export const delgoodsclassify = (id) => {
    return axios.get('/goods/delcate', { params: id })
}

export const lookonegoods = (id) => {
    return axios.get('/goods/info', { params: id })
}